package structures;

import java.util.ArrayList;
import java.util.List;
import pack.MyReader;

public class CardFaultData extends ElementaryFile{
	
	public List<CardFaultRecord> cardFaultRecords = new ArrayList<CardFaultRecord>();
	
	public CardFaultData(MyReader reader, int noOfFaultsPerType, int length)
	{
		int j = length / CardFaultRecord.size;
		CardFaultRecord f;
		for(int i = 0 ; i < j ; i++){
			f = new CardFaultRecord(reader);
			if(!f.empty){
				cardFaultRecords.add(f);				
			}
		}
	}
}
